﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;

namespace AGrandVenture
{
    public static class TextureManager
    {
        private static ContentManager content;

        private static Dictionary<string, Texture2D> textureDictionary;

        public static Dictionary<string, Texture2D> Textures
        {
            get { if (textureDictionary == null)textureDictionary = new Dictionary<string, Texture2D>(); return textureDictionary; }
        }

        private static string[] assetNames = {
                                                 "attackSlashSheet",
                                                 "EffectsSheet",
                                                 "effectsSheet48x48",
                                                 "enemyGeneratorSheet",
                                                 "enemysheet2",
                                                 "Equipment",
                                                 "evileye",
                                                 "GemSheet",
                                                 "mineralVein",
                                                 "player48x48",
                                                 "slimeeyes",
                                                 "tileSheet",
                                                 "WhiteDot"
                                             };

        public static void Initialise(ContentManager contentManager)
        {
            content = contentManager;
            textureDictionary = new Dictionary<string, Texture2D>();
        }
               

        private static Texture2D loadTexture(string name)
        {
            Texture2D texture = content.Load<Texture2D>(name);
            return texture;
        }


    }
}
